package com.liutt.shop_admin.config;

//import com.macro.mall.common.config.BaseSwaggerConfig;
//import com.macro.mall.common.domain.SwaggerProperties;
import com.liutt.shop.mbg.model.UmsAdmin;
import com.liutt.shopcommon.base.SwaggerProperties;
import com.liutt.shopcommon.config.BaseSwaggerConfig;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Swagger API文档相关配置
 * Created by macro on 2018/4/26.
 *
 * Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [shop-common,shop-mbg] are excluded from annotation processing
 */
@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.liutt.shop.controller")
                .title("mall后台系统")
                .description("mall后台相关接口文档")
                .contactName("macro")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
